package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 *
 * @author sss
 * @date 2016/8/11
 */
public enum AeriabotsSysExceptionEnum implements DefaultSysExceptionInterface {
    /****AERIABOTS**********AERIABOTS********************AERIABOTS**********AERIABOTS****/
    NO_COMPONENT_TOKEN(1201,"no component token,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_ENCODING_AES_KEY(1202,"no encodingAesKey ,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_COMPONENT_APPID(1203,"no componentAppid ,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_COMPONENT_ACCESS_TOKEN(1204,"no componentAccessToken ,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_APPID(1205,"no APPID ,配置表wx_certificate",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_PAY_NOTIFY_URI(1206,"no wx_pay_notify_url ,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_REGISTER_URL(1207,"no wx_register_url ,配置表wx_component",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_SDK_ERROR(1208,"WX_SDK_ERROR",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_CALL_ERROR(1209,"WX_CALL_ERROR",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_QRCODE_EXIST(1210,"微信二维码已经存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_QRCODE_NOT_EXIST(1212,"微信二维码不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    NO_WX_PAY_OPT(1213,"NO_WX_PAY_OPT",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_QRCODE_ID_GENERATE_ERROR(1214,"微信二维码场景id生成错误",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_ROOT_MENU_SIZE_TOO_BIG(1215,"主菜单数不能超过3",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_CHILD_MENU_SIZE_TOO_BIG(1216,"子菜单数不能超过3",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_REPLY_REPETITION(1217,"关键字不能重复",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    WX_REPLY_NOT_EXIT(1218,"关键字不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    PAYMENT_NOT_EXIT(1219,"查询不到支付记录",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    PAY_CHANNEL_ERROR(1220,"没有支付渠道",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    PAY_TYPE_ERROR(1221,"付款方式不正确",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    ALIPAY_OPTION_REEOR(1223,"支付宝配置出错:",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    PAY_ERROR_PERPAYID(1224,"获取预付款码失败,稍后重试",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    PAY_PREPAY_SIGN_ERROR(1225,"预下单签名错误:",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    ALI_PAY_NOITY_SIGN_ERROR(1226,"支付宝回调加密验证错误",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    OFFICEACCOUNT_REGIESTER_ERROR(1227,"微信公众号注册失败..",BaseConstant.SysExceptionConstant.BIZ_TYPE.AERIABOTS),
    ;

    private AeriabotsSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
